package com.diamond.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TInlayDiaPrice entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_inlay_dia_price", catalog = "diamond")
public class TInlayDiaPrice implements java.io.Serializable {

	// Fields

	private Long inlayDiaPriceId;
	private String inlayDiamondId;
	private Double rate;
	private String priceName;
	private String priceCode;
	private Long userId;
	private Long angentId;
	private Long costRate;
	private Long angentRate;

	// Constructors

	/** default constructor */
	public TInlayDiaPrice() {
	}

	/** full constructor */
	public TInlayDiaPrice(String inlayDiamondId, Double rate, String priceName,
			String priceCode, Long userId, Long angentId, Long costRate,
			Long angentRate) {
		this.inlayDiamondId = inlayDiamondId;
		this.rate = rate;
		this.priceName = priceName;
		this.priceCode = priceCode;
		this.userId = userId;
		this.angentId = angentId;
		this.costRate = costRate;
		this.angentRate = angentRate;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "inlay_dia_price_id", unique = true, nullable = false)
	public Long getInlayDiaPriceId() {
		return this.inlayDiaPriceId;
	}

	public void setInlayDiaPriceId(Long inlayDiaPriceId) {
		this.inlayDiaPriceId = inlayDiaPriceId;
	}

	@Column(name = "inlay_diamond_id", length = 100)
	public String getInlayDiamondId() {
		return this.inlayDiamondId;
	}

	public void setInlayDiamondId(String inlayDiamondId) {
		this.inlayDiamondId = inlayDiamondId;
	}

	@Column(name = "rate", precision = 22, scale = 0)
	public Double getRate() {
		return this.rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}

	@Column(name = "price_name", length = 100)
	public String getPriceName() {
		return this.priceName;
	}

	public void setPriceName(String priceName) {
		this.priceName = priceName;
	}

	@Column(name = "price_code", length = 100)
	public String getPriceCode() {
		return this.priceCode;
	}

	public void setPriceCode(String priceCode) {
		this.priceCode = priceCode;
	}

	@Column(name = "user_id")
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "angent_id")
	public Long getAngentId() {
		return this.angentId;
	}

	public void setAngentId(Long angentId) {
		this.angentId = angentId;
	}

	@Column(name = "cost_rate")
	public Long getCostRate() {
		return this.costRate;
	}

	public void setCostRate(Long costRate) {
		this.costRate = costRate;
	}

	@Column(name = "angent_rate")
	public Long getAngentRate() {
		return this.angentRate;
	}

	public void setAngentRate(Long angentRate) {
		this.angentRate = angentRate;
	}

}